Ext.define('Admin.store.organization.OrganizationTreeStore', {
    extend: 'Ext.data.TreeStore',
    alias: 'store.organizationTreeStore',

    model: 'Admin.model.organization.Organization',

    proxy: {
        type: 'ajax',
        url: 'organization/findNodes',
        reader: {
            type: 'json'
        }
    },
    root: {
        text: '公司结构',
        expand: true
    },

    folderSort: true
});